<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	template="/member/layout/loginLayout.xhtml">

	<ui:param name="param_pageTitle" value="会员注册" />

	<ui:define name="navigation">
		会员注册 
	</ui:define>
	<ui:define name="title">
		<div class="info">会员注册</div>
	</ui:define>

	<ui:define name="panelContent">
		<h:form styleClass="registerForm" id="userForm">
			<c:if test="#{globalMessage.getGlobalMessage().hasNext()}">
				<div class="tips_box">
					<div class="msg">
						<rg:iterator var="message"
							items="#{globalMessage.getGlobalMessage()}">
							<p class="#{message.severity}">#{message.summary}</p>
						</rg:iterator>
					</div>
				</div>
			</c:if>
			<div class="fieldSet regBox">
				<div class="field clear">
					<div class="label">
						<font class="red">*</font>用户名：
					</div>
					<div class="input">
						<h:inputText id="username" required="true"
							requiredMessage="用户名不能为空！" styleClass="text-input" size="32"
							validatorMessage="用户名长度在2-32个字符！"
							value="#{registerAction.entity.username}">
							<f:validateLength minimum="2" maximum="32"></f:validateLength>
						</h:inputText>
					</div>
					<div class="tip" text="4－20位字符，以英文字母开头可包含、数字或”_”">
						<h:message for="username"
							styleClass="input-notification errorinfo png_bg" />
					</div>
				</div>
				<div class="field clear">
					<div class="label">
						<font class="red">*</font>登录密码：
					</div>
					<div class="input">
						<h:inputSecret required="true" requiredMessage="登录密码不能为空！"
							id="password" styleClass="text-input " size="32"
							validatorMessage="登录密码长度在3-20个字符！"
							value="#{registerAction.entity.password}">
							<f:validateLength minimum="3" maximum="20"></f:validateLength>
						</h:inputSecret>
					</div>
					<div class="tip">
						<h:message for="password"
							styleClass="input-notification errorinfo png_bg" />
					</div>
				</div>
				<div class="field clear">
					<div class="label">
						<font class="red">*</font>登录密码确认：
					</div>
					<div class="input">
						<h:inputSecret id="password2" styleClass="text-input " size="32"
							value="#{registerAction.password}">
						</h:inputSecret>
					</div>
				</div>
				<hr class="dotLine" />
					<div class="field clear">
						<div class="label">
							<font class="red">*</font>您的姓名：
						</div>
						<div class="input">
							<h:inputText id="realName" styleClass="text-input " size="32" requiredMessage="请输入姓名！"
								validatorMessage="长度不能超过12个字符！" value="#{registerAction.entity.partyName}">
								<f:validateLength maximum="12"></f:validateLength>
							</h:inputText>
						</div>
						<div class="tip" text="注册成功后不可更改，请填写真实姓名。">
							<h:message for="realName"
								styleClass="input-notification errorinfo png_bg" />
						</div>
					</div>
					<div class="field clear">
						<div class="label">
							<font class="red">*</font>身份证号：
						</div>
						<div class="input">
							<h:inputText id="idNumber" styleClass="text-input " size="48" requiredMessage="请输入身份证号！"
								required="true" validatorMessage="号码长度不能超过20个字符！" value="#{registerAction.entity.identityCard}">
							</h:inputText>
						</div>
						<div class="tip">
							<h:message for="idNumber"
								styleClass="input-notification errorinfo png_bg" />
						</div>
					</div>
					<div class="field clear">
						<div class="label">
							<font class="red">*</font>手机号码：
						</div>
						<div class="input">
							<h:inputText id="phone" styleClass="ipt " size="32"
								required="true" requiredMessage="请输入手机！"
								validatorMessage="长度限制6-20个字符]！"
								value="#{registerAction.entity.phone}">
								<f:validateLength minimum="6" maximum="20"></f:validateLength>
							</h:inputText>
						</div>
						<div class="tip">
							<h:message for="phone"
								styleClass="input-notification errorinfo png_bg" />
						</div>
					</div>
					<div class="field clear">
						<div class="label">邮箱：</div>
						<div class="input">
							<h:inputText id="email" styleClass="ipt " size="32"
								validatorMessage="必须合法的邮箱地址，且长度不能超过32个字符"
								value="#{registerAction.entity.email}"
								validatorTarget="emailValidator">
								<f:validateLength maximum="32"></f:validateLength>
							</h:inputText>
						</div>
						<div class="tip">
							<h:message for="email"
								styleClass="input-notification errorinfo png_bg" />
						</div>
					</div>
				</div>
				<hr class="dotLine" />
				<div class="button">
					<p>
						<INPUT id="contract" class="iRadio" name="contract"
							value="contract" CHECKED="true" type="checkbox" /> <A
							 target="_blank"
							href="/help/fwxy.jsf">自愿遵守路远商城服务协议</A>
					</p>
					<h:commandButton action="#{registerAction.register()}"
						class="btnRegister" value="提交注册 " />
				</div>
		</h:form>
	</ui:define>
</ui:composition>